import { readFileSync } from 'fs';
import * as yaml from 'js-yaml';
import { join } from 'path';


export default () => {
    const devConfig = yaml.load(readFileSync(join(__dirname, `./dev.yml`), 'utf8')) as Record<string, any>
    process.env.DATABASE_URL = devConfig.DATABASE_URL;
    return devConfig;
};
